<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>

<form:form modelAttribute="partySearchParams" action="" method="POST">
	<dl style="float: left;">
		<dt><label for="lastName"><spring:message code="persons.model.lastName"/>:</label></dt>
		<dd><form:input path="lastName" size="30" /> <form:errors path="lastName" cssClass="errors" /></dd>

		<dt><label for="firstName"><spring:message code="persons.model.firstName"/>:</label></dt>
		<dd><form:input path="firstName" size="30" /> <form:errors path="firstName" cssClass="errors" /></dd>
		
		<dt><label for="birthDate"><spring:message code="persons.model.birthDate"/>:</label></dt>
		<dd><form:input path="birthDate" size="10" maxlength="10"/> <spring:message code="persons.search.dateformatinfo" /> <form:errors path="birthDate" cssClass="errors" /></dd>
		
		<dt><label for="telephoneNumber"><spring:message code="persons.model.telephoneNumber"/>:</label></dt>
		<dd><form:input path="telephoneNumber" size="30" /> <form:errors path="telephoneNumber" cssClass="errors" /></dd>
		
		<dt><label for="emailAddress"><spring:message code="persons.model.emailAddress"/>:</label></dt>
		<dd><form:input path="emailAddress" size="30" /> <form:errors path="emailAddress" cssClass="errors" /></dd>

		<dd>
			<input type="submit" class="button button-icon button-search" value="<spring:message code="persons.search.submit"/>" />
			<input type="reset" class="button button-icon button-reset" value="<spring:message code="persons.search.reset"/>" onclick="clearForm(this.form); return false;" />
		</dd>
	</dl>
	<dl style="float: left;">
		<dt><label for="streetNumber"><spring:message code="persons.model.streetNumber"/>:</label></dt>
		<dd><form:input path="streetNumber" size="4" /> <form:errors path="streetNumber" cssClass="errors" /></dd>
		
		<dt><label for="streetType"><spring:message code="persons.model.streetType"/>:</label></dt>
		<dd><form:input path="streetType" size="10" /> <form:errors path="streetType" cssClass="errors" /></dd>
		
		<dt><label for="streetName"><spring:message code="persons.model.streetName"/>:</label></dt>
		<dd><form:input path="streetName" size="30" /> <form:errors path="streetName" cssClass="errors" /></dd>
		
		<dt><label for="postalCode"><spring:message code="persons.model.postalCode"/>:</label></dt>
		<dd><form:input path="postalCode" size="6" /> <form:errors path="postalCode" cssClass="errors" /></dd>
		
		<dt><label for="city"><spring:message code="persons.model.city"/>:</label></dt>
		<dd><form:input path="city" size="10" /> <form:errors path="city" cssClass="errors" /></dd>
	</dl>
	<form:hidden path="rootUrl" />
</form:form>
